﻿using System;
using System.Windows.Input;

namespace HostEdit
{
    public class CommandMenuItem : ICommand
    {


        public bool CanExecute(object parameter)
        {
            return true;
        }

        public event EventHandler CanExecuteChanged;

        public void Execute(object parameter)
        {
            
            ExecuteClass.WriteHost((parameter as Hosts));

        }

    }
}
